import request from '@/utils/request'

// 查询非遗制作流程列表
export function listMake(query) {
  return request({
    url: '/books/make/list',
    method: 'get',
    params: query
  })
}

// 查询非遗制作流程详细
export function getMake(makeId) {
  return request({
    url: '/books/make/' + makeId,
    method: 'get'
  })
}

// 新增非遗制作流程
export function addMake(data) {
  return request({
    url: '/books/make',
    method: 'post',
    data: data
  })
}

// 修改非遗制作流程
export function updateMake(data) {
  return request({
    url: '/books/make',
    method: 'put',
    data: data
  })
}

// 删除非遗制作流程
export function delMake(makeId) {
  return request({
    url: '/books/make/' + makeId,
    method: 'delete'
  })
}
